package com.bifang.common.constant.enums.common;
/** 登入方设备类型 pc app */
public enum EquipmentTypeEnum {
    PC("pc", "pc电脑"),
    APP("app", "手机app");
    private String type;
    private String name;

    EquipmentTypeEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static EquipmentTypeEnum getByType(String type) {

        for (EquipmentTypeEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
